﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package org.aswing {
    import org.aswing.plaf.*;
    import org.aswing.plaf.basic.*;

    public class UIManager {

        private static var lookAndFeelDefaults:UIDefaults;
        private static var lookAndFeel:LookAndFeel;

        public static function setLookAndFeel(_arg1:LookAndFeel):void{
            lookAndFeel = _arg1;
            setLookAndFeelDefaults(_arg1.getDefaults());
        }
        public static function getLookAndFeel():LookAndFeel{
            checkLookAndFeel();
            return (lookAndFeel);
        }
        public static function getDefaults():UIDefaults{
            return (getLookAndFeelDefaults());
        }
        public static function getLookAndFeelDefaults():UIDefaults{
            checkLookAndFeel();
            return (lookAndFeelDefaults);
        }
        private static function setLookAndFeelDefaults(_arg1:UIDefaults):void{
            lookAndFeelDefaults = _arg1;
        }
        private static function checkLookAndFeel():void{
            if (lookAndFeel == null){
                setLookAndFeel(new BasicLookAndFeel());
            };
        }
        public static function containsKey(_arg1:String):Boolean{
            return (getDefaults().containsKey(_arg1));
        }
        public static function get(_arg1:String){
            return (getDefaults().get(_arg1));
        }
        public static function getUI(_arg1:Component):ComponentUI{
            return (getDefaults().getUI(_arg1));
        }
        public static function getBoolean(_arg1:String):Boolean{
            return (getDefaults().getBoolean(_arg1));
        }
        public static function getNumber(_arg1:String):Number{
            return (getDefaults().getNumber(_arg1));
        }
        public static function getInt(_arg1:String):int{
            return (getDefaults().getInt(_arg1));
        }
        public static function getUint(_arg1:String):uint{
            return (getDefaults().getUint(_arg1));
        }
        public static function getString(_arg1:String):String{
            return (getDefaults().getString(_arg1));
        }
        public static function getBorder(_arg1:String):Border{
            return (getDefaults().getBorder(_arg1));
        }
        public static function getGroundDecorator(_arg1:String):GroundDecorator{
            return (getDefaults().getGroundDecorator(_arg1));
        }
        public static function getColor(_arg1:String):ASColor{
            return (getDefaults().getColor(_arg1));
        }
        public static function getFont(_arg1:String):ASFont{
            return (getDefaults().getFont(_arg1));
        }
        public static function getIcon(_arg1:String):Icon{
            return (getDefaults().getIcon(_arg1));
        }
        public static function getInsets(_arg1:String):Insets{
            return (getDefaults().getInsets(_arg1));
        }
        public static function getStyleTune(_arg1:String):StyleTune{
            return (getDefaults().getStyleTune(_arg1));
        }
        public static function getInstance(_arg1:String){
            return (getDefaults().getInstance(_arg1));
        }
        public static function getClass(_arg1:String):Class{
            return (getDefaults().getConstructor(_arg1));
        }

    }
}//package org.aswing 
